﻿using ProjectCore.Domain.DomainService;
using ProjectCore.Domain.Model.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProjectCore.Application
{
    public class AppAdmin : IAppAdmin
    {
        private readonly IAdminDomainService adminDomainService;
        public AppAdmin(IAdminDomainService _adminDomainService)
        {
            adminDomainService = _adminDomainService;
        }
        public async Task<int> Add(Admin admin)
        {
            return await adminDomainService.Add(admin);
        }

        public async Task<List<Admin>> GetAdmins()
        {
            return await adminDomainService.GetAdmins();
        }
    }
}
